from cx_Freeze import setup, Executable
import sys

# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {
    "packages": ["os", "tkinter"],
    "include_files": ["app.ico"]  # 包含图标文件
}

# Base is set to "Win32GUI" to create a Windows GUI application.
base = None
if sys.platform == "win32":
    base = "Win32GUI"

setup(
    name="SearchApp",
    version="1.0",
    description="A file search application",
    options={"build_exe": build_exe_options},
    executables=[Executable("search.py", base=base, icon="app.ico")]
)
